package com.guofen.dao;

import com.guofen.pojo.Name;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.Na;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NameMapper {
    List<Name> selectAll();

    Name selectByPrimaryKey(String name);

    int deleteByPrimaryKey(String name);

    int insertSelective(Name name);

    int updateByPrimaryKeySelective(Name name);

    List<Name> selectByGrade1(@Param("grade1") Integer grade1, @Param("grade2") Integer grade2);

    List<Name> selectByGrade2(@Param("grade1") Integer grade1, @Param("grade2") Integer grade2);

    List<Name> selectByGrade3(@Param("grade1") Integer grade1, @Param("grade2") Integer grade2);

    List<Name> selectByName(String name);
}
